package com.yunban.project.api.text_check.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunban.project.api.text_check.domain.CorrectTaskDetails;
import com.yunban.project.api.text_check.enums.CorrectState;
import com.yunban.project.api.text_check.utils.CorrectUtils;

import java.util.List;

/**
 * @author: lijiajun
 * @date: 2024-12-04
 * @version: 1.0
 */
public interface CorrectTaskDetailsService extends IService<CorrectTaskDetails> {

    void batchSaveTask(String taskId, List<CorrectUtils.TextSegment> segments);

    CorrectTaskDetails getUnParsedTask();

    List<CorrectTaskDetails> findByTaskIdAndState(String taskId, CorrectState state);

    Boolean checkTaskFinished(String taskId);

    long countByFinishedAndTaskId(String taskId);
}
